/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardgame;

import java.io.File;

/**
 *
 * @author Carl
 */
public class Launcher_Server{
    
    public static void main(String[] args){
        FrameUtil.initProgramProperties();
        java.awt.EventQueue.invokeLater(new Runnable(){

            @Override
            public void run(){
                ServerLauncher serverLauncher = new ServerLauncher(33900);
                MainFrame mainFrame = new MainFrame(Launcher.connect("localhost", serverLauncher.getPort()));
                mainFrame.joinGame(DeckFileHandler.load(new File(PanDeckEditor.DIRECTORY_DECKS + "fire.xml")));
                mainFrame.setVisible(true);
            }
        });
    }
}
